package com.bdqn.pojo;

public class PageSupport {
    private int currentPageNo;//当前页码
    private int pageSize;//页面容量
    private int totalCount;//总数量
    private int totalPageCount;//总页数

    public int getTotalPageCount() {
        return totalPageCount;
    }


    public int getCurrentPageNo() {
        return currentPageNo;
    }

    public void setCurrentPageNo(int currentPageNo) {
        this.currentPageNo = currentPageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
        this.totalPageCount = totalCount%pageSize == 0?totalCount/pageSize:totalCount/pageSize+1;
    }
}
